#ifndef C3DPOINT_H
#define C3DPOINT_H

class C3DPoint
{
	public:
		C3DPoint();		//constructor
		~C3DPoint();	//deconstructor

		C3DPoint& operator = (const C3DPoint &p);				//operator overloading =
		C3DPoint operator + (const C3DPoint &p);				//operator overloading +
		C3DPoint operator - (const C3DPoint &p);				//operator overloading -
		C3DPoint operator * (const double d); 					//operator overloading *

		void Set(const double, const double, const double);		//set the point values
	 	double abs(const C3DPoint &p) const;					//get distance

		void Print() const;		//print out the value
		//Get values of point
		double x() const;
		double y() const;
		double z() const;
	
	private:
		double _x;				//x
		double _y;				//y
		double _z;				//z
};

#endif
